package com.wang.streamx;


import java.io.Serializable;

public class WaterSensor implements Serializable {


    private String id;
    private Long low;
    private Integer hight;


    public String toSql() {
        return String.format(
                "insert into t_watersensor(id, low, hight) value ('%s',%d,%d)",
                id, low, hight
        );
    }

    public WaterSensor() {
    }

    public WaterSensor(String id, Long low, Integer hight) {
        this.id = id;
        this.low = low;
        this.hight = hight;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getLow() {
        return low;
    }

    public void setLow(Long low) {
        this.low = low;
    }

    public Integer getHight() {
        return hight;
    }

    public void setHight(Integer hight) {
        this.hight = hight;
    }
}
